package com.gm.task;

import java.util.Map;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.context.ApplicationContext;

public class JobDetailBean implements Job{
	
    public void execute(JobExecutionContext context)  
            throws JobExecutionException {  
    	System.out.println("enter JobDetailBean excute");
        Map dataMap = context.getJobDetail().getJobDataMap();  
        String container = (String)dataMap.get("container");  
        ApplicationContext applicationContext = (ApplicationContext)dataMap.get("applicationContext");  
        //applicationContext.getBean("");  
        if(container.equals("Tomcat")){  
            //  
        }  
        //  
        System.out.println("exit JobDetailBean excute");
    }  
}
